package com.base.logistics.sf.bean;

import com.base.logistics.utils.SfGsonBuilder;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * <pre>
 * 统一响应对象
 * </pre>
 * @since 2021-02-14
 */
public class Response implements Serializable {

    /**
     * API平台结果代码
     */
    private String apiResultCode;

    /**
     * API平台异常信息
     */
    private String apiErrorMsg;

    /**
     * API响应唯一号UUID
     */
    @SerializedName("apiResponseID")
    private String apiResponseId;

    /**
     * 业务处理详细结果
     */
    private String apiResultData;

    public Response() {
    }


    public static Response fromJson(String json) {
        return SfGsonBuilder.create().fromJson(json, Response.class);
    }

    public String getApiResultCode() {
        return this.apiResultCode;
    }

    public String getApiErrorMsg() {
        return this.apiErrorMsg;
    }

    public String getApiResponseId() {
        return this.apiResponseId;
    }

    public String getApiResultData() {
        return this.apiResultData;
    }

    public void setApiResultCode(String apiResultCode) {
        this.apiResultCode = apiResultCode;
    }

    public void setApiErrorMsg(String apiErrorMsg) {
        this.apiErrorMsg = apiErrorMsg;
    }

    public void setApiResponseId(String apiResponseId) {
        this.apiResponseId = apiResponseId;
    }

    public void setApiResultData(String apiResultData) {
        this.apiResultData = apiResultData;
    }

}
